import 'package:flutter/material.dart';

import '../compant/Photos.dart';

class SunsetScreen extends StatefulWidget {
  final Color bc1;
  // final Color bc2;
  final String img;
  final String text;
  final String tip;
  const SunsetScreen(
      {super.key,
      required this.bc1,
      required this.img,
      required this.text,
      required this.tip});

  @override
  State<SunsetScreen> createState() => _SunsetScreenState();
}

class _SunsetScreenState extends State<SunsetScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        toolbarHeight: 100,
        centerTitle: true,
        backgroundColor: const Color(0xffFF876B),
        actions: [
          Image.asset('assets/appbarmessge.png'),
        ],
        leading: InkWell(
          onTap: () {
            Navigator.pop(context);
          },
          child: Image.asset('assets/appbarretrun.png'),
        ),
        title: SizedBox(
          width: 140,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Image.asset(
                widget.img,
                scale: 0.8,
              ),
              Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  Text(
                    widget.text,
                    style: const TextStyle(color: Colors.white, fontSize: 20),
                  ),
                  Text(
                    widget.tip,
                    style: const TextStyle(color: Colors.white, fontSize: 10),
                  ),
                ],
              ),
            ],
          ),
        ),
      ),
      body: const Padding(
        padding: EdgeInsets.all(30.0),
        child: SingleChildScrollView(
          child: Column(
            children: [
              Photos(),
              Row(
                children: [
                  Expanded(
                    flex: 2,
                    child: Photos(),
                  ),
                  SizedBox(
                    width: 20,
                  ),
                  Expanded(
                    flex: 1,
                    child: Photos(),
                  ),
                ],
              ),
              Row(
                children: [
                  Expanded(
                    flex: 1,
                    child: Photos(),
                  ),
                  SizedBox(
                    width: 20,
                  ),
                  Expanded(
                    flex: 2,
                    child: Photos(),
                  ),
                ],
              ),
              Row(
                children: [
                  Expanded(
                    flex: 1,
                    child: Photos(),
                  ),
                  SizedBox(
                    width: 20,
                  ),
                  Expanded(
                    flex: 1,
                    child: Photos(),
                  ),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
